package com.ydy.dto;

import java.util.LinkedList;
import java.util.List;

public class RecordDTO {

	public Integer dayTotal;
	public String date;
	public List<TimeQuantumDTO> list;
 
	public Integer getDayTotal() {
		return dayTotal;
	}

	public void setDayTotal(Integer dayTotal) {
		this.dayTotal = dayTotal;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public List<TimeQuantumDTO> getList() {
		return list;
	}

	public void setList(List<TimeQuantumDTO> list) {
		this.list = list;
	}

	public boolean add(TimeQuantumDTO timeQuantumDTO) {
		if (list == null) {
			list = new LinkedList<TimeQuantumDTO>();
		}
		return list.add(timeQuantumDTO);
	}
}
